const app = getApp();
Page({
  data: {
    url: "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx6c0b701985715a02&redirect_uri=https%3A%2F%2Fneikong.chinahonden.com%2Fsecret%2Findex%2Flogin.html&response_type=code&scope=snsapi_userinfo&state=1#wechat_redirect"
  },
  onBackMsg(e) {
    var res = e.detail.data[0];
    console.log(res)
    // 是否 isadmin,保存 openid
    app.globalData.loginInfo = res;
    try {
      wx.setStorageSync("loginInfo", res);
    } catch (e) {}
    app.getRoute();
  }
});